package com.example.demo_test.web.controller;


import com.example.demo_test.web.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class HelloworldController {

    @Autowired
    TestService testService;

    @RequestMapping("/hello")
    public String hello(){
        return testService.sayHello() + ">>>>>>" + testService.getHahah() + ">>>>>" + testService.getYes();
    }


}
